/*
 * @Author: yuki
 * @Date: 2025-11-04 09:30:04
 * @LastEditTime: 2025-11-04 13:08:25
 * @Description: 路由配置
 */
import { lazy } from 'react';

import type { CustomRouteObjectType } from './types';
import NotFound from '../pages/NotFound';

const Home = lazy(() => import('../pages/Home'));

const routes: CustomRouteObjectType[] = [
  {
    path: '/',
    element: <Home />,
    name: 'Home',
    label: '首页'
  },
  {
    path: '*',
    element: <NotFound />,
    name: 'NotFound',
    label: '未找到'
  }
];

export default routes;
